package com.jrx.anytxn.accounting.job.glinterfaceInvestor.step;

import com.jrx.anytxn.accounting.bean.GlInterfaceInvestorBean;
import com.jrx.anytxn.accounting.service.ITlGlInterfaceInvestorInfoService;
import com.jrx.anytxn.investor.entity.TlGlInterfaceInvestorInfo;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GlInterfaceInvestorProcessor implements ItemProcessor<TlGlInterfaceInvestorInfo, GlInterfaceInvestorBean> {

    @Autowired
    private ITlGlInterfaceInvestorInfoService tlGlInterfaceInvestorInfoService;

    @Override
    public GlInterfaceInvestorBean process(TlGlInterfaceInvestorInfo tlGlInterfaceInvestorInfo) throws Exception {
        return tlGlInterfaceInvestorInfoService.getGlInterfaceInvestorBean(tlGlInterfaceInvestorInfo);
    }
}
